namespace HPIT.Shop.Services.Entities
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("TBUser")]
    public partial class TBUser
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public TBUser()
        {
            Receiving = new HashSet<Receiving>();
        }

        public int Id { get; set; }

        [Required]
        [StringLength(16)]
        public string NickName { get; set; }

        [StringLength(256)]
        public string Avatar { get; set; }

        public int Sex { get; set; }

        public DateTime Birthday { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<Receiving> Receiving { get; set; }
    }
}
